package club.ruanx.spider.service.impl;

import club.ruanx.spider.entity.SpiderRecord;
import club.ruanx.spider.repository.SpiderRecordRepository;
import club.ruanx.spider.service.SpiderService;
import org.springframework.stereotype.Service;

/**
 * @author 阮胜
 * @date 2018/11/26 13:21
 */
@Service
public class SpiderServiceImpl implements SpiderService {
    private final SpiderRecordRepository spiderRecordRepository;

    public SpiderServiceImpl(SpiderRecordRepository spiderRecordRepository) {
        this.spiderRecordRepository = spiderRecordRepository;
    }

    @Override
    public SpiderRecord save(SpiderRecord spiderRecord) {
        return spiderRecordRepository.save(spiderRecord);
    }
}
